
/*******************************************************************************
 * 页面路径管理***
 * 
 * 使用示例 var pagepath = new PagePath();
 * 
 * alert(pagepath["index"]);
 * 
 * 也可以试一下pagepath.index
 * 
 *ps: PagePath.prototype.*** == ...;   ***不能以数字开头
 * 
 ******************************************************************************/
var PagePath = function() {

	/**cms服务器域名*/
	PagePath.prototype.cmsDomain="";
	
	/******首页********/
	PagePath.prototype.index = this.cmsDomain;
	/******车险投保页面********/
	PagePath.prototype.carInsurance = this.cmsDomain+"/cpsg/gcbj/index.shtml";
	/******家财险投保页面********/
	PagePath.prototype.homeownerInsurance = this.cmsDomain+"/cpsg/jtccbj/index.shtml";
	/******意外险投保页面********/
	PagePath.prototype.accidentInsurance = this.cmsDomain+"/cpsg/ywbj/index.shtml";
	/******旅行险投保页面********/
	PagePath.prototype.travelInsurance = this.cmsDomain+"/cpsg/lhbj/index.shtml";
	/******企业险投保页面********/
	PagePath.prototype.qiyetoubao = this.cmsDomain+"/cpsg/qybj/index.shtml";
	PagePath.prototype.lipei = this.cmsDomain + "/ebiz/view/insuranceClaim/claimMain.jsp?showflag=3";	//理赔网点查询
	PagePath.prototype.yingye = this.cmsDomain + "/cbwd/index.shtml"; //理赔营业网点


	PagePath.prototype.serverPromise = this.cmsDomain + "/ebiz/view/onlineBusinessNew/insuranceCommitment.html";	//保险服务承诺
	
	
	/** ***投保声明相关条款的页面*** */

	PagePath.prototype.ddhly = this.cmsDomain + "/wd/ywbj/5697.shtml";//大地欢乐游意外伤害保险条款
	PagePath.prototype.cgryyw = this.cmsDomain + "/wd/ywbj/5687.shtml";//大地行出国人员意外伤害保险条款
	PagePath.prototype.tfjxbsg = this.cmsDomain + "/wd/ywbj/5688.shtml";//大地附加突发急性病身故保险条款
	PagePath.prototype.jwjjmz = this.cmsDomain + "/wd/ywbj/5690.shtml";//大地附加境外紧急门诊医疗保险条款
	PagePath.prototype.jwjjjy = this.cmsDomain + "/wd/ywbj/5691.shtml";//大地附加境外紧急救援医疗保险条款

	PagePath.prototype.grywsh = this.cmsDomain + "/wd/ywbj/5693.shtml";//大地个人意外伤害保险条款
	PagePath.prototype.grywshyl = this.cmsDomain + "/wd/ywbj/5694.shtml";//大地附加个人意外伤害医疗保险条款
	PagePath.prototype.ywshzybtyl = this.cmsDomain + "/wd/ywbj/5698.shtml";//大地附加意外伤害住院补贴医疗保险条款 
	PagePath.prototype.jnwjnyz = this.cmsDomain + "/wd/ywbj/5702.shtml";//大地附加境内外急难援助保险条款
	PagePath.prototype.qjbywsh = this.cmsDomain + "/wd/ywbj/5703.shtml";//大地全家保意外伤害保险条款
	PagePath.prototype.ggjtgjywsh = this.cmsDomain + "/wd/ywbj/5701.shtml";//大地通达公共交通工具意外伤害保险条款 
	
	PagePath.prototype.zyflb = this.cmsDomain + "/wd/ywbj/5706.shtml";//职业分类表 
	
	PagePath.prototype.chjtzh = this.cmsDomain + "/wd/jtccbj/5684.shtml";//城市家庭综合保险条款
	
	PagePath.prototype.dxjd = this.cmsDomain+"/wd/gcbj/5677.shtml"; //电话营销专用机动车辆保险条款
	PagePath.prototype.jdjt = this.cmsDomain + "/wd/gcbj/5676.shtml";//机动车交通事故责任强制保险条款
	PagePath.prototype.bxtl = this.cmsDomain + "/wd/gcbj/5673.shtml";//机动车交通事故责任强制保险条例
	PagePath.prototype.yueding = this.cmsDomain + "/wd/gcbj/5674.shtml";//特别约定
	PagePath.prototype.qcwd1 = this.cmsDomain + "/wd/gcbj/5678.shtml";//机动车交通事故责任强制保险费率浮动暂行办法
	PagePath.prototype.qcwd2 = this.cmsDomain + "/wd/gcbj/5681.shtml";//四川省酒后驾驶交通违法行为与机动车交强险费率联系浮动承保实务规程
	PagePath.prototype.fudong = "/" + getRootPath()
	+ "/view/carOnlineSales/carVehiclelDetail.jsp";//浮动告知单
	
	PagePath.prototype.dxjdjs = this.cmsDomain + "/wd/qcbx/2501.shtml"; //电话营销专用机动车辆保险条款(竟盛)
	PagePath.prototype.jdjtjs = this.cmsDomain + "/wd/qcbx/2502.shtml"; //机动车交通事故责任强制保险条款(竟盛)
	PagePath.prototype.bxtljs = this.cmsDomain + "/wd/qcbx/2503.shtml"; //机动车交通事故责任强制保险条例(竟盛)
	PagePath.prototype.yuedingjs = this.cmsDomain + "/wd/qcbx/2504.shtml"; //特别约定(竟盛)
	PagePath.prototype.fudongjs = "/" + getRootPath()
	+ "/view/cooperate/carVehiclelDetail.jsp";//浮动告知单(竟盛)
	
	PagePath.prototype.accTraf = this.cmsDomain + "/wd/ywbj/13534.shtml";//大地畅行驾乘人员意外伤害保险
	
	/******支付帮助-支付流程*******/
	PagePath.prototype.zhifuliucheng = this.cmsDomain+"/ebiz/view/onlineBusinessNew/businessMain.jsp?showflag=2";
	/******支付帮助-付款方式*******/
	PagePath.prototype.fukuanfangshi = this.cmsDomain+"/ebiz/view/onlineBusinessNew/businessMain.jsp?showflag=22";
	/******支付帮助-支付安全*******/
	PagePath.prototype.zhifuanquan = this.cmsDomain+"/ebiz/view/onlineBusinessNew/businessMain.jsp?showflag=23";
	
	/******家财险-家财无忧*******/
	PagePath.prototype.jiacaiwuyou = this.cmsDomain+"/cpsg/jtccbj/5980.shtml";
	/******家财险-家居无忧*******/
	PagePath.prototype.jiajuwuyou = this.cmsDomain+"/cpsg/jtccbj/5973.shtml";
	/******家财险-家政无忧*******/
	PagePath.prototype.jiazhengwuyou = this.cmsDomain+"/cpsg/jtccbj/5964.shtml";
	/******家财险-无忧三代*******/
	PagePath.prototype.wuyousandai = this.cmsDomain+"/cpsg/jtccbj/5952.shtml";
	/******家财险-天天护家系列*******/
	PagePath.prototype.tiantianhujia = "/" + getRootPath()+ "/view/download/20160316TTHJ.pdf";
	/******家财险-假期护家系列*******/
	PagePath.prototype.jiaqihujia = "/" + getRootPath()+ "/view/download/20160316JQHJ.pdf";
	/******家财险-淘气保系列*******/
	PagePath.prototype.taoqibaoEF = "/" + getRootPath()+ "/view/download/20160118JHRZREF-E&F.pdf";
	PagePath.prototype.taoqibaoG = "/" + getRootPath()+ "/view/download/20160118JHRZREF-G.pdf";
	PagePath.prototype.taoqibaoH = "/" + getRootPath()+ "/view/download/20160118JHRZREF-H.pdf";
	/******家财险-随车行李险系列*******/
	PagePath.prototype.suichexingli = "/" + getRootPath()+ "/view/download/170531SXWSBT.pdf";
	/******高端家财险系列*******/
	PagePath.prototype.gdjcxl = "/" + getRootPath()+ "/view/download/gdjcxl.pdf";
	/******财产险-团体险-餐饮险*******/
	PagePath.prototype.ccttcyx = "/" + getRootPath()+ "/view/download/20160719CYX.pdf";
	
	/******女性安康险系列*******/
	PagePath.prototype.womenTeYue = "/" + getRootPath()+ "/view/download/womenTeYue.pdf";
	PagePath.prototype.womenAnKang = "/" + getRootPath()+ "/view/download/womenAnKang.pdf";
	
	/******大地老人意外险*******/
	PagePath.prototype.oldYiWai1 = "/" + getRootPath()+ "/view/download/oldYiWai1.pdf";
	PagePath.prototype.oldYiWai2 = "/" + getRootPath()+ "/view/download/oldYiWai2.pdf";
	PagePath.prototype.oldYiWai3 = "/" + getRootPath()+ "/view/download/oldYiWai3.pdf";
	
	/******意外险-四季无忧*******/
	PagePath.prototype.sijiwuyou = this.cmsDomain+"/cpsg/ywbj/5928.shtml";
	/******意外险-爱家无忧*******/
	PagePath.prototype.aijiawuyou = this.cmsDomain+"/cpsg/ywbj/5924.shtml";
	/******意外险-交通无忧*******/
	PagePath.prototype.jiaotongwuyou = this.cmsDomain+"/cpsg/ywbj/5915.shtml";
	/******意外险-学平险*******/
	PagePath.prototype.shaoerYWX01 = "/" + getRootPath()+ "/view/download/shaoerYWX01.pdf";
	PagePath.prototype.shaoerYWX03 = "/" + getRootPath()+ "/view/download/shaoerYWX03.pdf";
	PagePath.prototype.E20151009TK = "/" + getRootPath()+ "/view/download/20151009TK.pdf";
	/******意外险-520专属方案*******/
	PagePath.prototype.E20160408FJYIYL = "/" + getRootPath()+ "/view/download/20160408FJYIYL.pdf";
	PagePath.prototype.E20160408FJYIWGZ = "/" + getRootPath()+ "/view/download/20160408FJYIWGZ.pdf";
	PagePath.prototype.E20160408FJSPSH = "/" + getRootPath()+ "/view/download/20160408FJSPSH.pdf";
	PagePath.prototype.E20160408TTYWSH = "/" + getRootPath()+ "/view/download/20160408TTYWSH.pdf";
	PagePath.prototype.E20160408CXJCSH = "/" + getRootPath()+ "/view/download/20160408CXJCSH.pdf";
	PagePath.prototype.E20160408FJKLTT = "/" + getRootPath()+ "/view/download/20160408FJKLTT.pdf";
	PagePath.prototype.E20160408FJTFJXB = "/" + getRootPath()+ "/view/download/20160408FJTFJXB.pdf";
	/******意外险-安康险*******/
	PagePath.prototype.E20160506TYYWBX = "/" + getRootPath()+ "/view/download/20160506TYYWBX.pdf";
	PagePath.prototype.E20160506TTSHBX = "/" + getRootPath()+ "/view/download/20160506TTSHBX.pdf";
	PagePath.prototype.E20160506CXYWBX = "/" + getRootPath()+ "/view/download/20160506CXYWBX.pdf";
	PagePath.prototype.E20160506YWSHBX = "/" + getRootPath()+ "/view/download/20160506YWSHBX.pdf";
	PagePath.prototype.E20160506FJTYYWYLBX = "/" + getRootPath()+ "/view/download/20160506FJTYYWYLBX.pdf";
    /******组合险(意外险组合财产险)-安康险*******/
	PagePath.prototype.C20160607DDJTZHBX = "/" + getRootPath()+ "/view/download/20160607DDJTZHBX.pdf";
		
	/******旅行险-畅游型*******/
	PagePath.prototype.changyouxing = this.cmsDomain+"/cpsg/lhbj/5847.shtml";
	/******旅行险-悠游型*******/
	PagePath.prototype.youyouxing = this.cmsDomain+"/cpsg/lhbj/5865.shtml";
	/******旅行险-无忧型*******/
	PagePath.prototype.wuyouxing = this.cmsDomain+"/cpsg/lhbj/5876.shtml";
	/******旅行险-精选型*******/
	PagePath.prototype.jingxuanxing = this.cmsDomain+"/cpsg/lhbj/5784.shtml";
	
	/******注册-网站用户注册条款*******/
	PagePath.prototype.zhucetiaokuan = this.cmsDomain+"/wd/tk/5727.shtml";
};
function getRootPath() {
	var pathName = window.location.pathname.substring(1);
	var webName = pathName == '' ? '' : pathName.substring(0, pathName
			.indexOf('/'));
	// var tt = window.location.protocol + '//' + window.location.host + '/'+
	// webName + '/';
	return webName;
}

function toCMSPageNewWin(name) {
	var pagepath = new PagePath();
	window.open(pagepath[name])
}


function toCMSPageParent(name) {
	var pagepath = new PagePath();
	window.parent.location.href = pagepath[name];
}

//调转到家财险
function toHomeOnlineIndex () {
	var pagepath = new PagePath();
	var homeOnlineIndex = pagepath["homeownerInsurance"];
	window.location.href = homeOnlineIndex;
}

//调转到意外险
function toAccidentInsurance() {
	var pagepath = new PagePath();
	var homeOnlineIndex = pagepath["accidentInsurance"];
	window.location.href = homeOnlineIndex;
}
//调转到旅行保险
function toTravelInsurance() {
	var pagepath = new PagePath();
	var homeOnlineIndex = pagepath["travelInsurance"];
	window.location.href = homeOnlineIndex;
}

//调转到旅行保险-欢乐游意外伤害保险条款
function toRules() {
	var pagepath = new PagePath();
	var ddhly = pagepath["ddhly"];
	window.open(ddhly);
}

//调转到旅行保险-大地行出国人员意外伤害保险条款
function toRulesAbroad1() {
	var pagepath = new PagePath();
	var cgryyw = pagepath["cgryyw"];
	window.open(cgryyw);
}

//调转到旅行保险-大地附加突发急性病身故保险条款
function toRulesAbroad2() {
	var pagepath = new PagePath();
	var tfjxbsg = pagepath["tfjxbsg"];
	window.open(tfjxbsg);
}

//调转到旅行保险-大地附加境外紧急门诊医疗保险条款
function toRulesAbroad3() {
	var pagepath = new PagePath();
	var jwjjmz = pagepath["jwjjmz"];
	window.open(jwjjmz);
}

//调转到旅行保险-大地附加境外紧急救援医疗保险条款
function toRulesAbroad4() {
	var pagepath = new PagePath();
	var jwjjjy = pagepath["jwjjjy"];
	window.open(jwjjjy);
}

//调转到意外保险-大地个人意外伤害保险条款
function toRulesIinsurance1() {
	var pagepath = new PagePath();
	var grywsh = pagepath["grywsh"];
	window.open(grywsh);
}

//调转到意外保险-大地附加个人意外伤害医疗保险条款
function toRulesIinsurance2() {
	var pagepath = new PagePath();
	var grywshyl = pagepath["grywshyl"];
	window.open(grywshyl);
}

//调转到意外保险-大地附加意外伤害住院补贴医疗保险条款 
function toRulesIinsurance3() {
	var pagepath = new PagePath();
	var ywshzybtyl = pagepath["ywshzybtyl"];
	window.open(ywshzybtyl);
}

//调转到意外保险-大地附加境内外急难援助保险条款
function toRulesIinsurance4() {
	var pagepath = new PagePath();
	var jnwjnyz = pagepath["jnwjnyz"];
	window.open(jnwjnyz);
}

//调转到意外保险-大地全家保意外伤害保险条款
function toRulesLoveHome() {
	var pagepath = new PagePath();
	var qjbywsh = pagepath["qjbywsh"];
	window.open(qjbywsh);
}

//调转到意外保险-大地通达公共交通工具意外伤害保险条款 
function toRulesTraffic() {
	var pagepath = new PagePath();
	var ggjtgjywsh = pagepath["ggjtgjywsh"];
	window.open(ggjtgjywsh);
}

//调转到家庭财产保险-城市家庭综合保险条款
function toRulesPreview() {
	var pagepath = new PagePath();
	var chjtzh = pagepath["chjtzh"];
	window.open(chjtzh);
}

//跳到指定的条款
function toLookRulesDetail(param) {
	var pagepath = new PagePath();
	var tiaokuanUrl = pagepath[param];
	window.open(tiaokuanUrl);
}

//调转到意外险和旅行险-大地畅行驾乘人员意外伤害保险
function toRulesAccTraf() {
	var pagepath = new PagePath();
	var accTraf = pagepath["accTraf"];
	window.open(accTraf);
}

//职业分类表
function toRulesCon() {
	var pagepath = new PagePath();
	var zyflb = pagepath["zyflb"];
	window.open(zyflb);
}

//调转到首页
function toIndex() {
	var pagepath = new PagePath();
	window.location.href = pagepath["cmsDomain"] + "/index.shtml";
}